package com.meeting.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class Meeting {
    private Integer id;
    private String roomId;
    private String roomName;
    private String bookerName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;
    private String meetingTopic;
    private Integer cancelFlag;

    public Meeting() {
    }

    public Meeting(Integer id, String roomId, String roomName, String bookerName, LocalDateTime startTime,
                   LocalDateTime endTime, String meetingTopic, Integer cancelFlag) {
        this.id = id;
        this.roomId = roomId;
        this.roomName = roomName;
        this.bookerName = bookerName;
        this.startTime = startTime;
        this.endTime = endTime;
        this.meetingTopic = meetingTopic;
        this.cancelFlag = cancelFlag;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getBookerName() {
        return bookerName;
    }

    public void setBookerName(String bookerName) {
        this.bookerName = bookerName;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public String getMeetingTopic() {
        return meetingTopic;
    }

    public void setMeetingTopic(String meetingTopic) {
        this.meetingTopic = meetingTopic;
    }

    public Integer getCancelFlag() {
        return cancelFlag;
    }

    public void setCancelFlag(Integer cancelFlag) {
        this.cancelFlag = cancelFlag;
    }

    @Override
    public String toString() {
        return "Meeting{" +
                "id=" + id +
                ", roomId='" + roomId + '\'' +
                ", roomName='" + roomName + '\'' +
                ", bookerName='" + bookerName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", meetingTopic='" + meetingTopic + '\'' +
                ", cancelFlag=" + cancelFlag +
                '}';
    }
}
